<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <title>Etro - Product Categories</title>
    <link rel="stylesheet" href="css/plugin.css">
    <link rel="stylesheet" href="css/collection.css">
    <link rel="stylesheet" href="css/feather.css">
    <link rel="stylesheet" href="css/style1.css">
    <style>
        .container {
            display: flex;
            gap: 20px;
        }
        
        .sidebar {
            width: 250px;
            background: #f8f9fa;
            padding: 20px;
            border-radius: 8px;
        }
        
        .sidebar h3 {
            margin-bottom: 15px;
            font-size: 18px;
            color: #333;
        }
        
        .category-list {
            list-style: none;
            padding: 0;
        }
        
        .category-list li {
            margin-bottom: 10px;
        }
        
        .category-list a {
            color: #555;
            text-decoration: none;
            transition: color 0.2s;
        }
        
        .category-list a:hover {
            color: #4CAF50;
        }
        
        .main-content {
            flex: 1;
        }
        
        .product-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
            margin: 30px 0;
        }
        
        .product-card {
            position: relative;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 3px 10px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
        }
        
        .product-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.15);
        }
        
        .product-badge {
            position: absolute;
            top: 10px;
            left: 10px;
            padding: 3px 10px;
            border-radius: 3px;
            font-size: 12px;
            font-weight: bold;
            z-index: 2;
        }
        
        .badge-new {
            background: #4CAF50;
            color: white;
        }
        
        .badge-sale {
            background: #F44336;
            color: white;
        }
        
        .badge-hot {
            background: #FF9800;
            color: white;
        }
        
        .product-image {
            position: relative;
            padding-top: 100%;
            overflow: hidden;
        }
        
        .product-image img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: opacity 0.3s ease;
        }
        
        .product-image img.hover-img {
            opacity: 0;
            position: absolute;
        }
        
        .product-card:hover .hover-img {
            opacity: 1;
        }
        
        .product-actions {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(255,255,255,0.9);
            padding: 10px;
            display: flex;
            justify-content: center;
            transform: translateY(100%);
            transition: all 0.3s ease;
        }
        
        .product-card:hover .product-actions {
            transform: translateY(0);
        }
        
        .quick-view, .add-to-cart {
            margin: 0 5px;
            padding: 5px 10px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .quick-view {
            background: #333;
            color: white;
        }
        
        .add-to-cart {
            background: #4CAF50;
            color: white;
        }
        
        .quick-view:hover, .add-to-cart:hover {
            opacity: 0.9;
        }
        
        .product-info {
            padding: 15px;
        }
        
        .product-title {
            font-size: 14px;
            margin-bottom: 5px;
        }
        
        .product-title a {
            color: #333;
            text-decoration: none;
        }
        
        .product-price {
            display: flex;
            align-items: center;
        }
        
        .current-price {
            font-weight: bold;
            color: #222;
            font-size: 16px;
        }
        
        .old-price {
            text-decoration: line-through;
            color: #999;
            font-size: 13px;
            margin-left: 8px;
        }
        
        @media (max-width: 992px) {
            .product-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }
        
        @media (max-width: 768px) {
            .product-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        
        @media (max-width: 480px) {
            .product-grid {
                grid-template-columns: 1fr;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="sidebar">
            <h3>商品分类</h3>
            <ul class="category-list">
                <li><a href="#">电子产品</a></li>
                <li><a href="#">家居用品</a></li>
                <li><a href="#">服装</a></li>
                <li><a href="#">食品</a></li>
                <li><a href="#">图书</a></li>
            </ul>
        </div>
        <div class="main-content">
            <div class="product-grid">
        <!-- 商品1 -->
        <div class="product-card">
            <span class="product-badge badge-new">NEW</span>
            <div class="product-image">
                <img src="image/home1/product/product-1.jpg" alt="Product">
                <img src="image/home1/product/product-2.jpg" alt="Product" class="hover-img">
            </div>
            <div class="product-actions">
                <button class="quick-view">Quick View</button>
                <button class="add-to-cart">Add to Cart</button>
            </div>
            <div class="product-info">
                <h3 class="product-title"><a href="#">Wireless Earbuds</a></h3>
                <div class="product-price">
                    <span class="current-price">$59.99</span>
                    <span class="old-price">$79.99</span>
                </div>
            </div>
        </div>
        
        <!-- 商品2 -->
        <div class="product-card">
            <span class="product-badge badge-sale">SALE</span>
            <div class="product-image">
                <img src="image/home1/product/product-3.jpg" alt="Product">
                <img src="image/home1/product/product-4.jpg" alt="Product" class="hover-img">
            </div>
            <div class="product-actions">
                <button class="quick-view">Quick View</button>
                <button class="add-to-cart">Add to Cart</button>
            </div>
            <div class="product-info">
                <h3 class="product-title"><a href="#">Smart Watch</a></h3>
                <div class="product-price">
                    <span class="current-price">$129.99</span>
                </div>
            </div>
        </div>
        
        <!-- 商品3 -->
        <div class="product-card">
            <span class="product-badge badge-hot">HOT</span>
            <div class="product-image">
                <img src="image/home1/product/product-5.jpg" alt="Product">
                <img src="image/home1/product/product-6.jpg" alt="Product" class="hover-img">
            </div>
            <div class="product-actions">
                <button class="quick-view">Quick View</button>
                <button class="add-to-cart">Add to Cart</button>
            </div>
            <div class="product-info"></div>
                <h3 class="product-title"><a href="#">Bluetooth Speaker</a></h3>
                <div class="product-price">
                    <span class="current-price">$89.99</span>
                    <span class="old-price">$109.99</span>
                </div>
            </div>
        </div>
        
        <!-- 商品4 -->
        <div class="product-card">
            <div class="product-image">
                <img src="image/home1/product/product-7.jpg" alt="Product">
                <img src="image/home1/product/product-8.jpg" alt="Product" class="hover-img">
            </div>
            <div class="product-actions">
                <button class="quick-view">Quick View</button>
                <button class="add-to-cart">Add to Cart</button>
            </div>
            <div class="product-info">
                <h3 class="product-title"><a href="#">Laptop Backpack</a></h3>
                <div class="product-price">
                    <span class="current-price">$49.99</span>
                </div>
            </div>
        </div>
        
        <!-- 可以继续添加更多商品... -->
            </div>
    </div>
</body>
</html>